﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace test_6_17
{
    class Grade
    {
        private String Name;
        private double score;
        public Grade(string name, double score)
        {
            Name = name;
            this.score = score;
        }
        private bool isPass()
        {
            bool result = false;
            if (score >= 60) 
            { 
                result = true;
            }
            return result;
        }
        public String PrintData()
        {

            if (isPass() == true)
            {
                return "姓名：" + Name + "、成绩：" + score.ToString() + "、通过";
            }
            else {
                return "姓名：" + Name + "、成绩：" + score.ToString() + "、未通过";
            }
        }
    }
}
